import request from '@/utils/request'


export default {
  getHospSetList(current,limit,searchObj){
    return request({
      url: '/admin/hosp/hospitalSet/findPage/'+current+"/"+limit,
      method: 'post',
      data: searchObj // 使用json
    })
  },
  deleteById(id) {
    return request({
      url: '/admin/hosp/hospitalSet/remove/'+id,
      method: 'delete'
    })
  },
  lockHospSet(id,status){
    return request({
      url: '/admin/hosp/hospitalSet/lockHospitalSet/'+id+'/'+status,
      method: 'put'
    })
  },
  saveHospSet(hospitalSet){
    return request({
      url: '/admin/hosp/hospitalSet/saveHospitalSet',
      method: 'post',
      data: hospitalSet
    })

  },
  getById(id){
    return request({
      url: '/admin/hosp/hospitalSet/getHospSet/'+id,
      method: 'get'
    })
  },
  updateHospSet(hospitalSet) {
    return request({
      url: '/admin/hosp/hospitalSet/updateHospitalSet',
      method: 'post',
      data: hospitalSet
    })
  }

}
